package org.sippr.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * word_cls
 */
@Data
public class WordCls implements Serializable {
    @NotNull(groups = Update.class)
    private Integer id;

    private Integer parentId;
    @NotEmpty
    private String name;

    private String createUser;

    private String updateUser;


    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")

    private LocalDateTime updateTime;
    private List<WordCls> children = new ArrayList<>();

    public interface Update {
    }
}